# THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
# ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
# PARTICULAR PURPOSE.
#
# Copyright (C) 1993 - 1995  Microsoft Corporation.  All Rights Reserved.
#
#
# Processor independent makefile

# Nmake macros for building Windows 32-Bit apps
!include <win32.mak>

PROJ = appmema

all: ..\pub\$(PROJ).dll

# Define project specific macros
PROJ_OBJS  = $(PROJ).obj dllinit.obj $(PROJ).res
BASE_OBJS  =
EXTRA_LIBS = kernel32.lib advapi32.lib ..\perfdll\sharemem.obj 
GLOBAL_DEP = $(PROJ).h
RC_DEP     = 


# Inference rule for updating the object files
.c.obj:
  $(cc) $(cdebug) $(cflags) $(cvars) $*.c

# Build rule for resource file
$(PROJ).res: $(PROJ).rc $(RC_DEP)
    $(rc) $(rcflags) $(rcvars) /fo $(PROJ).res $(PROJ).rc

# Build rule for DLL
..\pub\$(PROJ).DLL: $(BASE_OBJS) $(PROJ_OBJS) $(PROJ).res
    $(link) $(linkdebug) /entry:__DLLStartw_ \
     /NODEFAULTLIB /INCREMENTAL:NO /PDB:NONE /RELEASE /NOLOGO \
    $(BASE_OBJS) $(PROJ_OBJS) $(dlllibs) $(EXTRA_LIBS) \
    -out:..\pub\$(PROJ).dll /DEF:$(PROJ).def /MACHINE:$(CPU) \
       


# Rules for cleaning out those old files
clean:
    del *.bak *.pdb *.obj *.res *.exp *.map *.sbr *.bsc *.lst *.err
